#-*-coding:utf-8-*-
import hou
class InteractiveTools(object):
    def __init__(self):
        super(InteractiveTools,self).__init__()


    def setUseCookSelectionToUpdateGeometrySelectionTypeInSopStates(self,bool):
        if bool == True:
            hou.setPreference('sopstates.exportcookselectiontype.val','1')
            # print('1')
        else:
            hou.setPreference('sopstates.exportcookselectiontype.val','0')
            # print('0')

    def getUseCookSelectionToUpdateGeometrySelectionTypeInSopStates(self):
        return hou.getPreference('sopstates.exportcookselectiontype.val')
        # print('getUseCookSelectionToUpdateGeometrySelectionTypeInSopStates')


    def setObjectLevelCurveTool(self,bool):
        if bool == True:
            hou.setPreference('states.objcurve.autoenablecplane.val','1')
            # print('1')
        else:
            hou.setPreference('states.objcurve.autoenablecplane.val','0')
            # print('0')

    def getObjectLevelCurveTool(self):
        hou.getPreference('states.objcurve.autoenablecplane.val')
        # print('getObjectLevelCurveTool')


    def setSopLevelCurveTool(self,bool):
        if bool == True:
            hou.setPreference('states.curve.autoenablecplane.val','1')
            # print('1')
        else:
            hou.setPreference('states.curve.autoenablecplane.val','1')
            # print('0')

    def getSopLevelCurveTool(self):
        return hou.getPreference('states.curve.autoenablecplane.val')
        # print('getSopLevelCurveTool')


    def setBonesTool(self,bool):
        if bool == True:
            hou.setPreference('states.bones.autoenablecplane.val','1')
            # print('1')
        else:
            hou.setPreference('states.bones.autoenablecplane.val','0')
            # print('0')

    def getBonesTool(self):
        return hou.getPreference('states.bones.autoenablecplane.val')
        # print('getBonesTool')


    def setPathTool(self,bool):
        if bool == True:
            hou.setPreference('states.path.autoenablecplane.val','1')
            # print('1')
        else:
            hou.setPreference('states.path.autoenablecplane.val','0')
            # print('0')

    def getPathTool(self):
        return hou.getPreference('states.path.autoenablecplane.val')
        # print('getPathTool')

